package {
	import flash.display.Sprite;
	import flash.ui.ContextMenu;
	
	
	public class TestMouseRight extends Sprite
	{
		private var bg:Sprite;
		
		public function TestMouseRight()
		{
			bg = new Sprite();
			this.addChild(bg);
			
			bg.graphics.clear();
			bg.graphics.beginFill(0xFF0000, 1);
			bg.graphics.drawRect(50, 50, 200, 200);
			bg.graphics.endFill();
			
			var cm:ContextMenu = new ContextMenu();
			cm.hideBuiltInItems();			
			
			bg.contextMenu = cm;			
		}
	}
 
}